package com.vpen.commons.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Version: 1.0
 * @Author: Vpen
 * @Date: 2021/3/16 22:31
 * @Content: 统一返回结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String massage;
    T data;
    public CommonResult(Integer code, String massage){
        this(code,massage,null);
    }
}
